{include file="news/header.tpl"}
   

{literal}
<script type="text/javascript">

function vaild(id,type){

$.post("./index.php?member/vaildface",{id:id,type:type},function(data){
alert(data.message);
	$("#"+id).remove();
},"json");
	
}
</script>
{/literal}


	<div class="well"> <!-- Only required for left/right tabs -->
  <ul class="nav nav-tabs">
    <li class="active"><a href="#tab1" data-toggle="tab">基本信息</a></li>
    <li><a href="#tab2" data-toggle="tab">真实信息</a></li>
     <li><a href="#tab3" data-toggle="tab">财务信息</a></li>
          <li><a href="#tab4" data-toggle="tab">验证信息</a></li>
              <li><a href="#tab5" data-toggle="tab">历史跟踪</a></li>
     
  </ul>
  <div class="tab-content" style="min-height:0;">
   <div class="tab-pane active" id="tab1">

<form action="./index.php?member/save" method="post" enctype="multipart/form-data" >

	
<table class="table">

<tr><td class="col-md-2">{$lang['ACCOUNT']}</td><td class="col-md-3">
<input name="username" type="text" class="form-control"  value="{$rs.username}" >
</td><td class=right rowspan=4 colspan="2"><img src="
{if $rs.face==''}./static/attached/face/default_01.jpg{else}
{$rs.face}{/if}"  class="thumbnail" width="130px" height="130px">&nbsp;&nbsp;&nbsp;&nbsp;

<div class="uploader" id="uniform-fileInput"><input class="input-file uniform_on" name="face" id="fileInput" type="file"><span class="filename" style="-webkit-user-select: none; ">No file selected</span><span class="action" style="-webkit-user-select: none; ">选择头像</span></div>
</tr>
<tr><td >{$lang['PASSWORD']}</td><td class="col-md-3">
<input name="password" type="text"  class="form-control" value="{$password}" >
</td></tr>




<tr><td >{$lang['EMAIL']}</td><td class="col-md-3">
<input name="email" type="text" class="form-control"  value="{$rs.email}">
</td></tr>








<tr><td >{$lang['GROUP']}</td><td class="col-md-3">
<select name="groupid" class="form-control">
{section name=l loop=$group}
<option value="{$group[l].id}"  {if $rs.groupid==$group[l].id}selected{/if}>{$group[l].name}</option>
{/section}
</select>

</td></tr>





<tr><td >注册信息</td><td colspan="3">
 {$rs.area}  <small>{$rs.add_time|date_format:"%Y/%m/%d %H:%M"} </small></td></tr>

<tr>
<td></td>
<td>
<input type="hidden" name="uid" value="{$rs.uid}">
<input type="submit" name="" value="{$lang['SAVE']}"  class="btn btn-warning"></input>
</tr>

</table>
</div>
<!-- 真实信息 -->
  <div class="tab-pane" id="tab2">
<table class="table"> 
 
   <tr><td >{$lang['USERNAME']}</td><td class="col-md-3">
<input name="real_name" type="text" class="form-control" value="{$rs.real_name}">
</td></tr>

<tr><td >{$lang['MOBILE']}</td><td class="col-md-3">
<input name="mobile_phone" type="text" class="form-control" value="{$rs.mobile_phone}">
</td></tr>

<tr><td >{$lang['COUNTRY']}</td><td class="col-md-3">
<input name="country" type="text"  class="form-control"  value="{$rs.country}">
</td></tr>



<tr><td >{$lang['CITY']}</td><td class="col-md-6">
<input name="area" type="text"  class="input-large"  value="{$rs.area}">
</td></tr>
   <tr>
<td></td>
<td>
<input type="submit" name="" value="{$lang['SAVE']}"  class="btn btn-warning"></input>
</tr>
   </table>
   </div>
   
   <!-- 账户信息 -->
     <div class="tab-pane " id="tab3">
   <table class="table"> 
    <tr><td >积分</td><td class="col-md-3">
<input name="coupons" type="text"  class="form-control"  disabled value="{$rs.coupons}">
<a href="./index.php?coupons/user/?uid={$rs.uid}" target="_blank" class="btn btn-link">查看账目明细</a>
</td></tr>
   
</table>
   </div>
   <!-- 验证信息 -->
     <div class="tab-pane " id="tab4">
   <table class="table"> 
   
  <tr><td >{$lang['CHECK']}</td><td  class="col-md-3">
<select name="verify" class="form-control">
{foreach from=$verify key=ke item=l}
<option value="{$ke}"  {if $rs.verify==$ke}selected{/if}>{$l}</option>
{/foreach}
</select>

</td></tr>
   <tr><td >{$lang['FORBIDDEN']}</td><td >
<input type="radio" name="status"  value="0" {if $rs.status==0}checked{/if}>否
<input type="radio" name="status" value="1" {if $rs.status==1}checked{/if}>是


</td></tr>


<tr><td >{$lang['MANAGER']}</td><td >
<select name="manager">
{foreach from=$systemgroup key=key item=l}
<option value={$key} {if $rs.manager==$key}selected{/if}>{$l}</option>
{/foreach}
</select>

</td></tr>
<tr>
<td>授权</td>
<td><a href="./index.php?buyauthorize/add/?uid={$rs.uid}" class="btn btn-default">增加授权</a>
<a href="./index.php?buyauthorize/init/?uid={$rs.uid}"  class="btn btn-default">初始化授权</a>
</td>
</tr>
   <tr>
<td></td>
<td>
<input type="submit" name="" value="{$lang['SAVE']}"  class="btn btn-warning"></input>
</tr>
   </table> </div>
   
       <div class="tab-pane " id="tab5">
   
   
      <table class="table"> 
   
    <ul>
    {foreach from=$log item=l}
    <li># <small>{$l.action_time|date_format:"m/d H:i"}</small> {$rs.username} {$l.event} </li>
    {/foreach}
    </ul>
 
   </table>
</div>  </div>
</form>

</div>
{include file="news/footer.tpl"}


